$(document).ready(function(){
	$("#searchBtn").on("click", function(event){
		var opts = new Object();
		opts["url"] = $("#loadPageNaviUrl").text()+"/1";
		opts["dataType"] = "html";
		opts["type"] = "POST";
		opts["data"] = "frm:"+$("#frmPageNaviData").text();
		opts["htmlDiv"] = $("#htmlPageNaviDiv").text();
		
		loadPageNavi(opts);
	});
	
	$("#regNewBtn").on("click", function(event){
		var options = new Object();
		options["url"] = "/template/system/code/_regForm";
		options["jqwId"] = "newJqwPop";
		options["title"] = "코드 등록";
		options["resizable"] = false;
		options["width"] = "500";
		options["height"] = "280";
		jqwOpen(options);
	});
});

function jqwOpen(opts){	
	var options = new Object();
	options["url"] = opts["url"];
	options["type"] = "POST";
	options["dataType"] = "html";
	options["jqwId"] = opts["jqwId"];
	options["jqwType"] = "popup";//"popup";	//< "popup" | "save" | [null | ""] >
	options["title"] = opts["title"];
	options["resizable"] = opts["resizable"];
	options["width"] = opts["width"];
	options["height"] = opts["height"];
	
	var jqw = new jqWindow();
	jqw.intializer();
	jqw.jqwSet(options);
	jqw.run();
}